from selenium.webdriver.common.by import By

from po_study.base.base import Base


class BaiduHomePage(Base):
    def __init__(self,driver):
        Base.__init__(self,driver)

    def input_search_text(self):
        self.input((By.ID,'kw'),'上海疫情')
    def click_search_button(self):
        self.click((By.ID,'su'))



# class BaiduHomePage(Base):
#     def __init__(self, driver):
#         Base.__init__(self,driver)
#
#     def input_search_text(self):
#         self.input((By.ID,'kw'),'布兰妮')
#
#     def click_search_button(self):
#         self.click((By.ID,'su'))